<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>人机验证</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
  <script src="https://telegram.org/js/telegram-web-app.js?56"></script>
  <style>
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
      font-family: Arial, sans-serif;
      background: url("../static/images/bj.png") repeat;
    }
    .login-container {
      width: 300px;
      padding: 10px 20px 10px 20px;
      border: 1px solid #ccc;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      background: #ffffff
    }
    .login-container h2 {
      text-align: center;
      margin-bottom: 20px;
    }
    .login-container input {
      width: 95%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    .login-container button {
      width: 100%;
      padding: 10px;
      background-color: #5cb85c;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin-top: 20px;
    }
    .login-container button:hover {
      background-color: #4cae4c;
    }
    .login-container .error-message {
      color: red;
      text-align: center;
      margin-top: 10px;
      height: 25px;
    }
    .captcha-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 10px;
      margin-bottom: 10px;
    }
    .captcha-image {
      width: 58%;
      height: 38px;
      border: 1px solid #ccc;
      cursor: pointer;
    }
    .captcha-input {
      width: calc(100% - 122px); /* 减去padding、border和间距的宽度 */
      padding: 10px;
      margin-left: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
  </style>
</head>
<body>
<div class="login-container">
  <h2>人机验证</h2>
  <!-- 验证码布局 -->
  <div class="captcha-container">
    <img src="captcha_image_url_here" alt="加载中..." class="captcha-image" id="captcha-image">
    <input type="text" id="captcha" placeholder="验证码" class="captcha-input" required>
  </div>

  <button id="login-btn">验证</button>
  <p class="error-message" id="error-message"></p>
</div>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="../static/js/common.js"></script>
<script src="../static/js/verify.js"></script>
</body>
</html>
